NDepend.API Documentation
Linear(Nullable<Int64>,Double,Double,Double,Double) Method
NDepend.Helpers Namespace > ExtensionMethodsMath Class > Linear Method : Linear(Nullable<Int64>,Double,Double,Double,Double) Method
This value.
x coordinate 1
y coordinate 1
x coordinate 2
y coordinate 2
Returns linear value for x between the points (x1, y1) and (x2, y2).
Syntax

Parameters

x
This value.
x1
x coordinate 1
y1
y coordinate 1
x2
x coordinate 2
y2
y coordinate 2
Remarks
If x is lower than x1 returns y1.
If x is higher than x2 returns y2.
If x is null returns null.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsMath Class
ExtensionMethodsMath Members
Overload List